package com.walk.zworld.wxapi;

import com.tencent.mm.opensdk.modelmsg.SendAuth;
import com.tencent.mm.opensdk.modelmsg.SendAuth.Req;
import com.tencent.mm.opensdk.openapi.IWXAPI;
import com.walk.zworld.wxapi.wx.WxApiWrapper;

public class WxUtils {
    public static void snsapiUserinfo(){
        // send oauth request
        IWXAPI wxApi = WxApiWrapper.getInstance().getWxApi();
        SendAuth.Req req = new SendAuth.Req();
        req.scope = "snsapi_userinfo"; // 只能填 snsapi_userinfo
        req.state = "wechat_sdk_demo";
        wxApi.sendReq(req);
    }
}
